package com.yyw.gulimall.authserver.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author 易煜玮
 * @ClassName RegisterUserVo.java
 * @Description 用户登录的VO类
 * @createTime 2020年12月14日 20:03:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LoginUserVo {
    private static final long serialVersionUID = 1L;
    /**
     * 用户名
     */
    @NotEmpty(message = "用户名不能为空")
    private String username;
    /**
     * 密码
     */
    @NotEmpty(message = "请输入密码")
    private String password;

}
